<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">
<h:body>

	<p:panel header="Dados do Motorista">
		<h:panelGrid columns="1" columnClasses="label, value"
			styleClass="grid">

			<h:outputText value="Procurar Motorista:" />
			<h:outputLabel value="Digite Cpf:*" rendered="true" />
			<h:panelGrid columns="3">
				<p:inputMask id="cpf" mask="999.999.999-99"
					value="#{veiculoAction.cpf}" size="11" required="true">

				</p:inputMask>
				<p:message for="cpf" display="icon" />
				<p:commandButton value="procurar" rendered="true"
					actionListener="#{veiculoAction.procurarMotorista}"
					update="mensagemConfirmacao" ajax="false" />
			</h:panelGrid>

			<h:outputLabel value="Nome do Motorista:" />
			<h:outputText value="#{veiculoAction.funcionario.nomePessoa}"
				rendered="#{veiculoAction.cadastraMotorista}" />


		</h:panelGrid>
		<h:panelGrid columns="2">
		<h:outputLabel value="Ir para o final" />
		<p:selectBooleanCheckbox value="#{veiculoAction.skip}"/>
		</h:panelGrid>
	</p:panel>

</h:body>
</html>